package bar.dark.lee.select;

import android.os.Parcel;
import android.os.Parcelable;

public class SelectData implements Parcelable
{
	// in_out
	private String id;
	private String date;
	private String inMoney;
	private String outMoney;
	private String postMoney;
	private String category;
	private String memo;
	private String moneyKind;
	private String postMoneyKind;
	private String type;
	private String linkId;
	private String linktype;
	private String deleteYn;
	
//	private SelectSubData subData = new SelectSubData();
//	ClassLoader loader = SelectSubData.class.getClassLoader();

	public SelectData(){};
	
	public SelectData(Parcel source)
	{
		this.id = source.readString();
		this.date = source.readString();
		this.inMoney = source.readString();
		this.outMoney = source.readString();
		this.postMoney = source.readString();
		this.category = source.readString();
		this.memo = source.readString();
		this.moneyKind = source.readString();
		this.postMoneyKind = source.readString();
		this.type = source.readString();
		this.linkId = source.readString();
		this.linktype = source.readString();
		this.deleteYn = source.readString();
//		this.subData = source.readParcelable(loader);
	}

	@Override
	public int describeContents()
	{
		return 0;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getId());
		dest.writeString(this.getDate());
		dest.writeString(this.getInMoney());
		dest.writeString(this.getOutMoney());
		dest.writeString(this.getPostMoney());
		dest.writeString(this.getCategory());
		dest.writeString(this.getMemo());
		dest.writeString(this.getMoneyKind());
		dest.writeString(this.getPostMoneyKind());
		dest.writeString(this.getType());
		dest.writeString(this.getLinkId());
		dest.writeString(this.getLinktype());
		dest.writeString(this.getDeleteYn());
//		dest.writeParcelable(subData, 0);
	}
	
	public static Parcelable.Creator<SelectData> CREATOR = new Creator<SelectData>()
	{
		@Override
		public SelectData[] newArray(int size)
		{
			return new SelectData[size];
		}
		
		@Override
		public SelectData createFromParcel(Parcel source)
		{
			return new SelectData(source);
		}
	};
	
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getInMoney() {
		return inMoney;
	}
	public void setInMoney(String inMoney) {
		this.inMoney = inMoney;
	}
	public String getOutMoney() {
		return outMoney;
	}
	public void setOutMoney(String outMoney) {
		this.outMoney = outMoney;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getMoneyKind() {
		return moneyKind;
	}
	public void setMoneyKind(String moneyKind) {
		this.moneyKind = moneyKind;
	}
	public String getPostMoneyKind() {
		return postMoneyKind;
	}
	public void setPostMoneyKind(String postMoneyKind) {
		this.postMoneyKind = postMoneyKind;
	}
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getPostMoney()
	{
		return postMoney;
	}
	public void setPostMoney(String postMoney)
	{
		this.postMoney = postMoney;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}

	public String getLinkId()
	{
		return linkId;
	}

	public void setLinkId(String linkId)
	{
		this.linkId = linkId;
	}

	public String getLinktype()
	{
		return linktype;
	}

	public void setLinktype(String linktype)
	{
		this.linktype = linktype;
	}

	public String getDeleteYn()
	{
		return deleteYn;
	}

	public void setDeleteYn(String deleteYn)
	{
		this.deleteYn = deleteYn;
	}

//	public SelectSubData getSubData()
//	{
//		return subData;
//	}
//
//	public void setSubData(SelectSubData subData)
//	{
//		this.subData = subData;
//	}

}
